package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.article.query.DestinationQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Destination record);

    Destination selectByPrimaryKey(Long id);

    List<Destination> selectAll();

    List<Destination> selectForList(DestinationQuery qo);

    int updateByPrimaryKey(Destination record);

    List<Destination> selectByIds(Long[] refIds);

    List<Destination> selectByDeep(Integer deep);

    void updateIsHotByPrimaryKey(@Param("ishot") int hot, @Param("id") Long id);

    void updateInfoByPrimaryId(@Param("id") Long id, @Param("info") String info);

    Destination selectByName(String name);

    List<Destination> selectByRegionIds(Long[] refIds);

    List<Destination>selectByParentId(Long id);
}